package demoMod.stsconsole.powers;

import demoMod.stsconsole.core.AbstractCreature;
import demoMod.stsconsole.interfaces.TurnStartLoseBlockSubscriber;

public class BarricadePower extends AbstractPower implements TurnStartLoseBlockSubscriber {
    public static final String ID = "BarricadePower";

    public BarricadePower(AbstractCreature owner) {
        super(ID, owner, new int[0]);
    }

    @Override
    public int atTurnStartLoseBlock(AbstractCreature target) {
        return target == this.owner ? 0 : target.getCurrentBlock();
    }

    @Override
    public String getUpdatedDescriptions() {
        return this.description;
    }
}
